package cn.t.constants;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

@Data
@Component
@RefreshScope
@ConfigurationProperties(prefix = "system.config")
public class SystemProperties {

    /**
     * redis链接
     */
    private String redisHost;

    /**
     * redis pwd
     */
    private String redisPwd;

    /**
     * redis db number
     */
    private int redisDb;
    /**
     * 文件上传 basePath
     */
    private String uploadPath = "http://localhost:8080/upload/";
}
